package com.eportal.params.background.mall.Tcommodity;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 列表查询条件
 * Created by Saber on 2017/7/14.
 */
public class CommodityParamList {

    /**
     * 商品名称
     */
    private String cname;
    /**
     * 商品状态（0/1/2 新增/上架/下架）
     */
    private Integer status;
    /**
     * 发布时间（开始）
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date ctimeStart;
    /**
     * 发布时间（结束)
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date ctimeEnd;
    /**
     * 商品价格（开始）
     */
    private Double priceStart;
    /**
     * 商品价格（结束）
     */
    private Double priceEnd;

    /**
     * 查询类型【标签】 （ 所有商品/上架商品/下架商品/已售完   0/1/2/3 ）
     */
    private Integer type;



    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCtimeStart() {
        return ctimeStart;
    }

    public void setCtimeStart(Date ctimeStart) {
        this.ctimeStart = ctimeStart;
    }

    public Date getCtimeEnd() {
        return ctimeEnd;
    }

    public void setCtimeEnd(Date ctimeEnd) {
        this.ctimeEnd = ctimeEnd;
    }

    public Double getPriceStart() {
        return priceStart;
    }

    public void setPriceStart(Double priceStart) {
        this.priceStart = priceStart;
    }

    public Double getPriceEnd() {
        return priceEnd;
    }

    public void setPriceEnd(Double priceEnd) {
        this.priceEnd = priceEnd;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("CommodityParamList{");
        sb.append(", cname='").append(cname).append('\'');
        sb.append(", status=").append(status);
        sb.append(", ctimeStart=").append(ctimeStart);
        sb.append(", ctimeEnd=").append(ctimeEnd);
        sb.append(", priceStart=").append(priceStart);
        sb.append(", priceEnd=").append(priceEnd);
        sb.append(", type=").append(type);
        sb.append('}');
        return sb.toString();
    }
}
